package com.xiaobing.common.entity.system.relation;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 用户和部门关联表
 * </p>
 *
 * @author xulk
 * @since 2024-07-26
 */
@Getter
@Setter
@TableName("sys_user_dept_rel")
@Schema(name = "SysUserDept", description = "用户和部门关联表")
public class SysUserDept implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "部门ID")
    @TableField("dept_id")
    private Long deptId;
}
